home *** CD-ROM | disk | FTP | other *** search
- /* Create Letter Head
- A Macro by Steven. R. Giovenella, 5823 Dutchess Dr., Colorado Springs, CO 80918.
- © Copyright 1994 Steven. R. Giovenella, All rights reserved.
- This macro is my gift to the Amiga community. It may be given away free to
- anyone, but it may NOT be sold in any way, shape, or form, not even for the cost of
- reproduction, downloading, shipping, or handling, without express written
- permission from the author listed above. Any person or company who violates the
- content of the previous sentence, agrees to pay Steven R. Giovenella $1,000 (US) for
- each copy of this macro sold. This macro may NOT be added to any disk which is to
- be sold for any price or fee, to include shipping and handling. The ONLY way this
- macro may be distributed is on a disk which is given away 100% free of all charges,
- or on via telecommunications networks which do not charge any additional fee as a
- result of a user downloading this particular macro. This macro may only be
- reproduced in its entirety, including all comment lines and code. The individual
- user may alter this macro for personal use, but may not then distribute the macro
- in any modified form. If you wish, feel free to send me some cash, a Christmas card,
- some other piece of software, or absolutely nothing as a gift for creating this macro.
- The author of this software is not responsible for any data loss or damage to
- computer equipment as a result, direct or indirect, of the use of this macro. */
-
- Options Results
-
- /* Warning */
- Showmessage 2 0 '" ** WARNING **" " This Macro will
- alter the current document." "Unless the document is empty, save before proceed
- ing." " Proceed " " Save now " " Quit "'
- IF Result = 2 THEN SaveAs
- IF Result = 3 THEN Exit
-
- PageSetup PAGETYPE USLetter ORIENT Tall
- SectionSetup TOP .5 BOTTOM 0 INSIDE 1 OUTSIDE 1 HEADER 1.25 FOOTER 1
-
- /* Enter Data */
- RequestText '"Create Letter Head (line 1)" "Enter Company Name..." ""'
- company = Result
- ShowMessage 1 0 '"How many more lines will you need?" " " " " " 2 " "3 " "4 "'
- lines = ( Result + 1 )
- DO i = 1 to lines
- RequestText '"Create Letter Head (line ' (i + 1 )')" "Enter next line..." ""'
- line.i = Result
- END
-
- ShowMessage 2 0 '"The Letter Head should be..." "" "" " Left Justified " " Centered "
- " Right Justified "'
- IF Result = 1 THEN j=left
- IF Result = 2 THEN j =center
- IF Result = 3 THEN j =right
- EditRightMaster
- MoveToLine 1 0
- Status Fontpath
- fp = Result
- Font fp ||"_bold"
- type company
- Font fp
- Status FontSize
- fs = Result
- FontSize (fs - 2)
- NewParagraph
- DO i = 1 to lines
- type line.i
- NewParagraph
- END
- MoveToLine 1 0
- ShiftDown
- MoveToLine ( lines + 2 ) 0
- Justify j
- ShiftUp
- Cursor LEFT
- ShowMessage 2 0 '"Do you want a footer comment?" "" "" " Yes " " No " ""'
- IF Result = 1 THEN DO
- RequestText '"Enter footer Comment" ""'
- foot = Result
- Status lineheight
- lh = Result
- DO i = 1 to ((11 / lh) * (10.25 / 11 ) - (lines + 2))
- NewParagraph
- END
- type foot
- AltDown
- ShiftDown
- Cursor LEFT
- ShowMessage 2 0 '"The footer should be..." "" "" " Left Justified " " Cen
- tered " " Right Justified "'
- IF Result = 1 THEN j=left
- IF Result = 2 THEN j =center
- IF Result = 3 THEN j =right
- Justify j
- ShiftUp
- ShowMessage 2 0 '"Do you want header and footer lines?" " " " " " Yes " " No "
- ""'
- IF Result = 1 THEN DO
- ShowMessage 2 0 '"What point size?" " " " " " .5 " " 1 " " 2 "'
- IF Result = 1 THEN lw = .5
- IF Result = 1 THEN lw = 1
- IF Result = 1 THEN lw = 2
- LinePrefs LINEWT lw
- DrawLine 1 1 1.5 7.5 1.5
- DrawLine 1 1 10.25 7.5 10.25
- END
- END
-
- MoveToLine 1 0
- EditBody
-